import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import HousingView from '../views/HousingView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: "/login",
    name: "login",
    component: () =>
        import ("@/views/LoginView"),
  },
  {
    path: "/confirm",
    name: "confirm",
    component: () =>
        import ("@/views/ConfirmView"),
  },
  {
    path: '/',
    name: 'login',
    component: () =>
        import ("@/views/LoginView"),
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path:'/housing',
    name:'housing',
    component:HousingView
  }
]

const router = new VueRouter({
  routes
})

export default router
